package com.blogspot.radialmind;

public class IntegerTerm implements ITerm {
	private Integer value;
	
	public IntegerTerm( String buffer ) {
		this.value = Integer.valueOf( buffer );
	}
	
	public int toInteger() {
		return value.intValue();
	}
	
	public String toString() {
		return value.toString();
	}
	
	public float toFloat() {
		throw new RuntimeException( "Expected float term, is int: " + toString() );
	}
}
